package com.example.community.service;

import com.example.community.dao.pojo.DiscussPost;

import java.io.IOException;
import java.util.List;

public interface ElasticsearchService {

    void saveDiscussPost(DiscussPost discussPost);

    void deleteDiscussPost(int id);

    List<DiscussPost> searchDiscussPost(String keyword, int pageNo, int pageSize) throws IOException;

    long searchDiscussPostCount(String keyword) throws IOException;

}
